@layout("/common/_container.html",{js:["/assets/modular/system/dictType/index.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">字典类型表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="searchWords" class="layui-input" type="text" placeholder="搜索词"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                            </div>
                        </div>
                    </div>

                    <table class="layui-table" id="dictTypeTable" lay-filter="dictTypeTable"></table>

                    <script type="text/html" id="dictTypeTableToolbar">
                        <div class="layui-btn-container">
                            @if(shiro.hasPermission("/system/dictType/toAdd")){
                            <button class="layui-btn layui-btn-sm" lay-event="add"><i class="layui-icon layui-icon-add-circle"></i>添加</button>
                            @}
                            @if(shiro.hasPermission("/system/dictType/delete")){
                            <button class="layui-btn layui-btn-sm" lay-event="deleteBatch"><i class="layui-icon layui-icon-delete"></i>删除</button>
                            @}
                            @if(shiro.hasPermission("/system/dictType/sort")){
                            <button class="layui-btn icon-btn layui-btn-sm" lay-event="sort"><i class="layui-icon layui-icon-more-vertical"></i>排序</button>
                            @}
                            @if(shiro.hasPermission("/system/dictType/dictTypeCache")){
                            <button class="layui-btn icon-btn layui-btn-sm" lay-event="updateCache"><i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>更新缓存</button>
                            @}
                        </div>
                    </script>

                    <script type="text/html" id="task-table-toolbar">
                        @if(shiro.hasPermission("/system/dictType/toUpdate")){
                        <a class="layui-btn layui-btn-xs" lay-event="update">编辑</a>
                        @}
                        @if(shiro.hasPermission("/system/dictType/delete")){
                        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
                        @}
                    </script>

                </div>
            </div>
        </div>
    </div>
</div>

@}